home *** CD-ROM | disk | FTP | other *** search
/ Computer Life 1997 February / Computer Life February 1997.iso / TELME / DISK_07 / MOBI5001.SRP / MOBI5001.SRP
Text File  |  1996-05-28  |  2KB  |  85 lines

  1. rem Copyright (c) PhoneLink plc 
  2. rem Nokia Data Card Using Cellnet Link (21/03/96)
  3.  
  4. label InitDevice
  5. echo off
  6. echo script[56]
  7. send    "ats10=255s34=1s35=0s25=1char(13)"
  8. timeout 2,modem_fail
  9. find    "OK"
  10. label OffToGate 
  11. rem Offline to Gate (also contains Pad to Gate)
  12. echo off
  13. echo script[52]..
  14. send    "atdt46551char(13)"
  15. timeout {DialTimeout},connect_fail
  16. finderr 0,BUSY,connect_fail
  17. finderr 0,NO CARRIER,connect_fail
  18. find    "CONNECT"
  19. label PadToGate
  20. echo off
  21. mwait 500
  22. echo script[53].
  23. send    "call {NUA}char(13)"
  24. timeout 3,nua_bad1
  25. finderr 0,COM,nua_good
  26. finderr 0,ERR,nua_bad1
  27. find    "ZZZ"
  28. label nua_bad1
  29. echo script[58]
  30. send    "call {NUA}char(13)"
  31. timeout 3,nua_bad2
  32. finderr 0,COM,nua_good
  33. find    "ZZZ"
  34. label nua_bad2
  35. echo script[58]
  36. send    "call {NUA}char(13)"
  37. timeout 3,nua_fail
  38. finderr 0,CLR,nua_fail
  39. finderr 0,UNAVAILABLE,nua_fail
  40. find    "COM"
  41. label nua_good
  42. echo script[54].
  43. end
  44.  
  45. label GateToPad
  46. echo off
  47. echo script[92].
  48. send    "char(16)"
  49. timeout 3,disconnect_fail
  50. find    "*"
  51. send "CLRchar(13)"
  52. timeout 3,disconnect_fail
  53. find "CLR"
  54. echo script[91]...
  55. end
  56.  
  57. label GateToOff
  58. rem Gate to Offline (also contains Pad to Offline)
  59. echo off
  60. label PadToOff
  61. echo off 
  62. dtrtoggle 1500
  63. echo script[99].
  64. end
  65.  
  66. label modem_offline
  67. dtrtoggle 1500
  68. abort
  69.  
  70. label modem_fail
  71. echo script[24].
  72. goto modem_offline
  73.  
  74. label connect_fail
  75. echo script[1].
  76. goto modem_offline
  77.  
  78. label nua_fail
  79. echo script[4].
  80. goto modem_offline
  81.  
  82. label disconnect_fail
  83. echo script[92].
  84. goto modem_offline
  85.